.layout-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .layout-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: @Header-height;
    background-color: #303E9D;
    color: white;
    display: flex;

    .header-logo {
      display: inline-block;
      font-size: 22px;
      font-weight: bolder;
      line-height: @Header-height;
      margin-left: 10px;
      cursor: pointer;
    }

    .header-navigator {
      display: inline-flex;
      justify-content: flex-end;
      align-items: center;
      margin-left: 30px;
      flex: 1;

      & > a,
      a:focus,
      a:hover {
        cursor: pointer;
        text-decoration: none;
      }

      .navigator-item {
        color: #868e96;
        line-height: @Header-height;
        padding: 0 20px;
        transition: all 0.2s linear;
        cursor: pointer;

        &.active {
          background-color: #343a40;
          color: white;
        }
      }

      .active-cluster {
        margin-right: 30px;
      }
    }

    .el-dropdown--small,
    .header-avatar {
      height: 100%;
    }

    .header-avatar {
      padding-right: 15px;
      display: flex;
      align-items: center;
      cursor: pointer;

      .realName {
        color: #eee;
        padding-left: 8px;
      }
    }
  }

  .layout-aside {
    position: absolute;
    left: 0;
    bottom: 0;
    top: @Header-height;
    width: @Aside-barWidth;
    background-color: #fff;
    border-right: @basic-border;
    z-index: 2;

    .aside-menu {
      display: flex;
      flex-direction: column;
      padding-top: 10px;

      & > a,
      a:focus,
      a:hover {
        cursor: pointer;
        text-decoration: none;
      }

      .menu-item {
        width: 100%;
        padding: 12px 0;
        text-align: center;
        box-sizing: border-box;
        border: 1px solid transparent;
        transition: all 0.2s linear;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;

        & > i {
          font-size: 24px;
          color: #000;
        }
      }

      .menu-item.active {
        background-color: @color-bg;
        border-top: @basic-border;
        border-bottom: @basic-border;
        position: relative;

        & > i {
          color: @minor-blue;
        }

        &::before {
          display: inline-block;
          position: absolute;
          top: 0;
          right: -2px;
          bottom: 0;
          width: 1px;
          background-color: @color-bg;
          content: "";
        }

        &::after {
          display: inline-block;
          position: absolute;
          top: -1px;
          left: -1px;
          bottom: -1px;
          width: 4px;
          background-color: @minor-blue;
          content: "";
        }
      }
    }

    .aside-handle {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      text-align: center;
      padding-bottom: 15px;

      & > i {
        font-size: 24px;
        color: #000;
        cursor: pointer;
      }
    }
  }

  .layout-navigator {
    position: absolute;
    z-index: 1;
    top: @Header-height;
    bottom: 0;
    left: 0;
    width: @Aside-navigatorWidth;
    background-color: white;
    border-right: @basic-border;
    overflow: auto;
    .miniScrollBar;
    transition: all 0.2s linear;

    & > a,
    a:focus,
    a:hover {
      cursor: pointer;
      text-decoration: none;
    }

    .nav-item {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 500;
      font-size: 14px;
      color: #0a1f44;
      line-height: 32px;
      display: flex;
      align-items: center;
      margin: 8px;
      border-radius: @basic-radius;
      overflow: hidden;
      transition: all 0.2s linear;

      &:hover {
        background-color: @minor-blue;
        color: white;
      }

      & > i {
        padding: 0 8px 0 15px;
      }
    }

    .router-link-active {
      .nav-item {
        background-color: @minor-blue;
        color: white;
      }
    }
  }

  .layout-main {
    position: absolute;
    right: 0;
    bottom: 0;
    left: @Aside-navigatorWidth;
    top: @Header-height;
    background-color: #eee;
    transition: all 0.2s linear;

    .main-tabs {
      padding: @Tab-padding;
      background-color: white;
      border-bottom: @basic-border;
      min-height: @Tab-height;

      .el-tabs {
        .el-tabs__header {
          border: none;
          margin: 0;
        }

        .el-tabs__nav-scroll {
          padding: 0 5px;
        }

        .el-tabs__nav {
          border: none;
          min-height: @Tab-height;
        }

        .el-tabs__item {
          height: @Tab-height;
          line-height: @Tab-height;
          border: none;
          color: #64748b;
          .preventSelect;

          &.is-active {
            color: @minor-blue;
            background-color: #eff6ff;
            border-radius: @basic-radius;
            position: relative;

            &::before {
              position: absolute;
              display: inline-block;
              content: "";
              width: 8px;
              height: 8px;
              border-radius: 50%;
              background-color: @minor-blue;
              top: 50%;
              left: 7px;
              margin-top: -4px;
            }
          }
        }

        .el-tabs__nav-next,
        .el-tabs__nav-prev {
          height: @Tab-height;
          display: flex;
          justify-content: center;
          align-items: center;
        }
      }
    }

    .main-wrapper {
      position: absolute;
      top: @Tab-height + @Tab-padding*2 + 1px;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 15px;
      background-color: white;

      .page-wrap {
        height: 100%;
      }

      .main-title {
        font-family: PingFang SC;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #000;
        margin-bottom: 8px;
      }

      .main-tab-content {
        padding: 10px 20px;
        background-color: white;
      }

      .main-jsonContent {
        width: 100%;
        height: 65vh;
        padding: 5px;
        box-sizing: border-box;
        resize: none;
        border: 1px solid #ccc;
        border-radius: 5px;
        .scrollBar;
      }
    }

    .dialog-footer {
      display: flex;
      justify-content: center;
    }
  }
}

.main-wrapper {
  @space: 0;

  & > div.quinn {
    position: absolute;
    top: @space;
    right: @space;
    bottom: @space;
    left: @space;
    padding: 20px;
    overflow-y: auto;
    background-color: white;
    .scrollBar;
  }

  & > div.tabs-content {
    background-color: transparent;
    padding: 0;
    overflow-y: auto;

    .el-tabs.scrollTab {
      height: 100%;

      .el-tabs__content {
        height: calc(100% - 40px);
        overflow-y: auto;
        overflow: visible;
        .scrollBar;
      }

      .el-tabs__header {
        background-color: white;
      }

      .el-tabs__nav-scroll {
        padding: 0 20px;
      }
    }
  }
}

.page-wrap {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 8rpx;
}

.request-loading {
  height: 60px !important;
  width: 60px !important;
  top: 50% !important;
  left: 50% !important;
  margin-top: -30px !important;
  margin-left: -30px !important;
  background-color: transparent !important;
}
